home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- ############################################################################
- # Copyright (C) 2006 by Patrick J. Verner #
- # exodusrobot@yahoo.com #
- # #
- # This program is free software; you can redistribute it and/or modify #
- # it under the terms of the GNU General Public License as published by #
- # the Free Software Foundation; either version 2 of the License, or #
- # (at your option) any later version. #
- ############################################################################
-
- #make sure temp exists
- temp=/tmp/GPkeymap
- temp1=/tmp/GPkeymap
- if [ ! -d $temp1 ]
- then
- mkdir -p $temp1
- chmod 700 $temp1
- fi
-
- #**********main menu**********
- item="qwerty/us.map"
- while [ 0 ]
- do
- dialog --title "GParted LiveCD Keymap" --default-item "$item" --backtitle "GParted Livecd" --menu "Select your Keymap:" 22 55 11 \
- "qwerty/us.map" "" \
- "azerty/azerty.map" "" \
- "azerty/be-latin1.map" "" \
- "azerty/fr-latin1.map" "" \
- "azerty/fr-latin9.map" "" \
- "azerty/fr-pc.map" "" \
- "azerty/fr.map" "" \
- "azerty/wangbe.map" "" \
- "azerty/wangbe2.map" "" \
- "dvorak/ANSI-dvorak.map" "" \
- "dvorak/dvorak-l.map" "" \
- "dvorak/dvorak-r.map" "" \
- "dvorak/dvorak.map" "" \
- "fgGIod/tr_f-latin5.map" "" \
- "fgGIod/trf.map" "" \
- "qwerty/bg-cp1251.map" "" \
- "qwerty/bg-cp855.map" "" \
- "qwerty/bg_bds-cp1251.map" "" \
- "qwerty/bg_bds-utf8.map" "" \
- "qwerty/bg_pho-cp1251.map" "" \
- "qwerty/bg_pho-utf8.map" "" \
- "qwerty/br-abnt.map" "" \
- "qwerty/br-abnt2.map" "" \
- "qwerty/br-latin1-abnt2.map" "" \
- "qwerty/br-latin1-us.map" "" \
- "qwerty/by.map" "" \
- "qwerty/cf.map" "" \
- "qwerty/cz-cp1250.map" "" \
- "qwerty/cz-lat2-prog.map" "" \
- "qwerty/cz-lat2.map" "" \
- "qwerty/cz.map" "" \
- "qwerty/defkeymap.map" "" \
- "qwerty/defkeymap_V1.0.map" "" \
- "qwerty/dk-latin1.map" "" \
- "qwerty/dk.map" "" \
- "qwerty/emacs.map" "" \
- "qwerty/emacs2.map" "" \
- "qwerty/es-cp850.map" "" \
- "qwerty/es.map" "" \
- "qwerty/et-nodeadkeys.map" "" \
- "qwerty/et.map" "" \
- "qwerty/fi-latin1.map" "" \
- "qwerty/fi-latin9.map" "" \
- "qwerty/fi.map" "" \
- "qwerty/gr-pc.map" "" \
- "qwerty/gr.map" "" \
- "qwerty/hu101.map" "" \
- "qwerty/il-heb.map" "" \
- "qwerty/il-phonetic.map" "" \
- "qwerty/il.map" "" \
- "qwerty/is-latin1-us.map" "" \
- "qwerty/is-latin1.map" "" \
- "qwerty/it-ibm.map" "" \
- "qwerty/it.map" "" \
- "qwerty/it2.map" "" \
- "qwerty/jp106.map" "" \
- "qwerty/la-latin1.map" "" \
- "qwerty/lt.baltic.map" "" \
- "qwerty/lt.l4.map" "" \
- "qwerty/lt.map" "" \
- "qwerty/mk-cp1251.map" "" \
- "qwerty/mk-utf.map" "" \
- "qwerty/mk.map" "" \
- "qwerty/mk0.map" "" \
- "qwerty/nl.map" "" \
- "qwerty/nl2.map" "" \
- "qwerty/no-latin1.map" "" \
- "qwerty/no.map" "" \
- "qwerty/pc110.map" "" \
- "qwerty/pl.map" "" \
- "qwerty/pl2.map" "" \
- "qwerty/pt-latin1.map" "" \
- "qwerty/pt-latin9.map" "" \
- "qwerty/ro_win.map" "" \
- "qwerty/ru-cp1251.map" "" \
- "qwerty/ru-ms.map" "" \
- "qwerty/ru-yawerty.map" "" \
- "qwerty/ru.map" "" \
- "qwerty/ru1.map" "" \
- "qwerty/ru2.map" "" \
- "qwerty/ru3.map" "" \
- "qwerty/ru4.map" "" \
- "qwerty/ru_win.map" "" \
- "qwerty/se-fi-ir209.map" "" \
- "qwerty/se-fi-lat6.map" "" \
- "qwerty/se-ir209.map" "" \
- "qwerty/se-lat6.map" "" \
- "qwerty/sk-prog-qwerty.map" "" \
- "qwerty/sk-qwerty.map" "" \
- "qwerty/speakup-jfw.map" "" \
- "qwerty/speakupmap.map" "" \
- "qwerty/sr-cy.map" "" \
- "qwerty/sv-latin1.map" "" \
- "qwerty/tr_q-latin5.map" "" \
- "qwerty/tralt.map" "" \
- "qwerty/trq.map" "" \
- "qwerty/ua-utf-ws.map" "" \
- "qwerty/ua-utf.map" "" \
- "qwerty/ua-ws.map" "" \
- "qwerty/ua.map" "" \
- "qwerty/uk.map" "" \
- "qwerty/us-acentos.map" "" \
- "qwerty/us.map" "" \
- "qwertz/croat.map" "" \
- "qwertz/cz-us-qwertz.map" "" \
- "qwertz/de-latin1-nodeadkeys.map" "" \
- "qwertz/de-latin1.map" "" \
- "qwertz/de.map" "" \
- "qwertz/de_CH-latin1.map" "" \
- "qwertz/fr_CH-latin1.map" "" \
- "qwertz/fr_CH.map" "" \
- "qwertz/hu.map" "" \
- "qwertz/sg-latin1-lk450.map" "" \
- "qwertz/sg-latin1.map" "" \
- "qwertz/sg.map" "" \
- "qwertz/sk-prog-qwertz.map" "" \
- "qwertz/sk-qwertz.map" "" \
- "qwertz/slovene.map" "" \
- 2> $temp1/return
- if [ ! $? = 0 ]
- then
- break
- fi
- REPLY=`cat $temp1/return`
- rm -f $temp1/return
-
- #reply
- loadkeys /usr/share/kbd/keymaps/i386/$REPLY
- break
-
- done